<?php
class Mageex_RelatedProduct_Helper_Data extends Mage_Core_Helper_Abstract
{
	public function getArrAttribute()
	{
		$arrCode = array();	
		
		$collection = Mage::getResourceModel('eav/entity_attribute_collection')
									->setEntityTypeFilter( Mage::getModel('eav/entity')->setType('catalog_product')->getTypeId())
									->addFilter("is_visible", 1)
									->addFilter("is_filterable", 1);
		
		
		foreach($collection->getItems() as $col) {
			$arrCode[] = $col->getAttributeCode();
		}
		return $arrCode;
	}
}